package com.sample.base.utils

import android.content.res.Resources

/**
 *  @Author Created by Z on 2020/4/14 星期二 17:06
 *  @Desc :
 */
val Number.dp: Int get() = (toInt() * Resources.getSystem().displayMetrics.density).toInt()